Skip to content

docs: Improve documentation for macros#276

Open
Siel wants to merge 3 commits into
mainfrom
273-complete-the-api-documentation
Open

docs: Improve documentation for macros#276
Siel wants to merge 3 commits into
mainfrom
273-complete-the-api-documentation

Conversation

@Siel

@Siel Siel commented Jun 17, 2026

Copy link
Copy Markdown
Member

…ptimize module. #273

This PR aims to close #273

Copilot AI review requested due to automatic review settings June 17, 2026 12:17
@Siel Siel linked an issue Jun 17, 2026 that may be closed by this pull request

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR expands public-facing Rustdoc documentation for the optimize module and for the macro-based entrypoints (ode!, analytical!, sde!) that are re-exported from the main pharmsol crate, addressing the “complete the API documentation” request from issue #273.

Changes:

  • Added module-level Rustdoc for src/optimize and its key submodules (effect, parameters).
  • Added detailed Rustdoc (including field tables and examples) for the ode!, analytical!, and sde! procedural macros.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.

File Description
src/optimize/parameters.rs Adds module and API docs for ParameterOptimizer.
src/optimize/mod.rs Adds top-level optimize module docs and submodule descriptions.
src/optimize/effect.rs Adds module docs describing the get_e2 entrypoint.
pharmsol-macros/src/lib.rs Adds Rustdoc for ode!, analytical!, and sde! proc macros (fields + examples).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +1 to +7
//! Nelder‑Mead parameter refinement for pharmacometric models.
//!
//! This module provides a [`ParameterOptimizer`] that refines a single parameter
//! Given an [`Equation`], observed [`Data`], and [`AssayErrorModels`] via
//! Nelder‑Mead optimization in log‑space. The optimizer finds the parameter vector
//! that minimizes the negative log-likelihood of the model predictions against the data,
//! as measured by the provided error models.
Comment thread pharmsol-macros/src/lib.rs
Comment thread pharmsol-macros/src/lib.rs
Comment thread pharmsol-macros/src/lib.rs
@github-actions

github-actions Bot commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

🐰 Bencher Report

Branch273-complete-the-api-documentation
Testbedmhovd-pgx

⚠️ WARNING: Truncated view!

The full continuous benchmarking report exceeds the maximum length allowed on this platform.

🚨 2 Alerts

🐰 View full continuous benchmarking report in Bencher

Mostly related to doc links

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@mhovd mhovd changed the title Expanding the documentation for the macro-based entrypoints and the O… docs: Improve documentation for macros Jun 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Complete the API documentation

3 participants